#include <stdio.h>

static void sig_hanlder (int s);
int main (void)
{
	signal (SIGALRM, sig_hanlder);
	//定义一个1s的闹钟
	alarm(1);
}

void sig_hanlder (int s)
{
	alarm (1);
}

